/*
 * TransferNegotiationMessage.cpp
 *
 */

#include "CustodyRequestMessage.h"

vsznDefault(CustodyRequestMessage);

CustodyRequestMessage::CustodyRequestMessage()
{
	// Default constructor is
	// necessary for serialization
}

CustodyRequestMessage::CustodyRequestMessage(FilePtr file, string receiver) :
          key(file->get_key()),
          file_name(file->get_filename()),
          size(file->get_size()),
          receiver(receiver)
{
}


string CustodyRequestMessage::get_key()
{
  return key;
}

string CustodyRequestMessage::get_file_name()
{
  return file_name;
}

string CustodyRequestMessage::get_receiver()
{
  return receiver;
}


uint64_t CustodyRequestMessage::get_size()
{
  return size;
}
